package com.qkst.website.web.service;

import java.util.List;
import java.util.Map;

import com.qkst.website.web.bean.BargainLogBean;

/**
 * @author lihao
 * @description 砍价明service
 * @date 2017-05-08
 */
public interface BargainService {

	/**
	 * 根据条件查询砍价
	 * @param bargainLog
	 * @return
	 */
	public List<BargainLogBean> queryBargainLogList(BargainLogBean bargainLog);
	
	/**查询总记录数
	 * @param bargainLog
	 * @return
	 */
	public int queryCount(BargainLogBean bargainLog);

	/**
	 * 保持砍价记录
	 * @param bargainLog
	 * @param result 
	 * @return Map<String, Object>
	 */
	public void save(BargainLogBean bargainLog, Map<String, Object> result);

	/**
	 * 删除砍价记录
	 * @param bargainLog
	 * @param result
	 */
	public void delete(BargainLogBean bargainLog, Map<String, Object> result);

	/**查询砍价金额
	 * @param bargain
	 * @return
	 */
	public BargainLogBean queryBargainLogByConditions(BargainLogBean bargain);

	/**
	 * 根据token查询Bargain
	 * @param token
	 * @return
	 */
	public BargainLogBean queryBargainLogByToken(String token);



}
